package com.zlx.taskcenter;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.solr.SolrAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication(scanBasePackages = {"com.zlx.redismessage", "com.zlx"}, exclude = {SecurityAutoConfiguration.class, MultipartAutoConfiguration.class, SolrAutoConfiguration.class})
@EnableCaching  //开启缓存
@EnableTransactionManagement //开启事务 @Transaction 生效 springboot 默认配置
@RestController
@EnableAsync
@ServletComponentScan
public class TaskcenterApplication {

    public static void main(String[] args) {
        SpringApplication.run(TaskcenterApplication.class, args);
    }

}
